/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tchepannou.limbe.service;

import com.tchepannou.limbe.Service;
import com.tchepannou.limbe.model.Model;

import java.io.Serializable;

/**
 * This service is used for managing data persistence
 *
 * @author herve
 */
public interface PersistenceService
    extends Service
{
    public <T extends Model> T get (Serializable id, Class<T> type);

    public void beginTransaction ();

    public void commitTransaction ();

    public void rollbackTransaction ();
}
